﻿@model prufa.Models.RegisterModel
@{
    ViewBag.Title = "Nýskráning";
}

<hgroup class="title">
    <h1>@ViewBag.Title</h1>
</hgroup>

<section id="loginForm">
@using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl })) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Registration Form</legend>
            <p>Búa til nýjan aðgang</p>
        <ol>
            <li>
                @Html.TextBoxFor(m => m.UserName, new { @placeholder = "Notendanafn" })
                @Html.ValidationMessageFor(m => m.UserName)
            </li>
            <li>
                @Html.TextBoxFor(m => m.Email, new { @placeholder = "Netfang" })
                @Html.ValidationMessageFor(m => m.Email)
            </li>
            <li>
                @*New form-field for the avatar BLL*@
                
                @Html.TextBoxFor(m => m.Avatar, new { @placeholder = "Prófílmynd" })
                <p><em>Myndin verður að hafa slóð með jpg/png/gif endingu...</em></p>
                             
            </li>
            <li>

                @Html.PasswordFor(m => m.Password, new { @placeholder = "Lykilorð" })
                @Html.ValidationMessageFor(m => m.Password)
            </li>
            <li>
                @Html.PasswordFor(m => m.ConfirmPassword, new { @placeholder = "Lykilorð aftur" })
                @Html.ValidationMessageFor(m => m.ConfirmPassword)
            </li>
        </ol>
        <input id="awesomeButton" type="submit" value="Staðfesta"/>
    </fieldset>
}
</section>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}